package com.example.demo.mapper;


import com.example.demo.entity.CityData;
import com.example.demo.entity.Datenew;
import com.example.demo.entity.Testdata;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CityDataMapper {

    public List<CityData> selectall();

    //下面六个方法分别读取6列数据

    public List<CityData> selectabroad();

    public List<CityData> selectterritory();

    public List<Datenew> selectnew();

    public List<Datenew> selectaccumulate();

    public List<Datenew> selectaccumulate_die();

    public List<Datenew> selectaccumulate_sure();

    public List<Datenew> selectaccumulate_vaccines();

    public List<Datenew> selectAbroad();

    //下面方法为改变数据

    /**
     * 指定哪个数据更改
     * @param name 对应的是广州各地区名
     * @param sec  对应列名
     * @param num  要改变为什么数
     * @return
     */
    public Integer updateData(@Param("name") String name,@Param("sec") String sec,@Param("num") Integer num);

    public List<Testdata> num();


    Integer allUpdate(@Param("data")CityData cityData);

}
